package com.jojo.bubble.service.impl;

import com.jojo.bubble.entity.Price;
import com.jojo.bubble.dao.PriceDao;
import com.jojo.bubble.service.PriceService;
import org.springframework.stereotype.Service;

import java.util.List;

import javax.annotation.Resource;

/**
 * 价格表(Price)表服务实现类
 *
 * @author jojo
 * @since 2023-08-28 05:05:32
 */
@Service("priceService")
public class PriceServiceImpl implements PriceService {
    @Resource
    private PriceDao priceDao;

    @Override
    public int count(Price record) {
        return this.priceDao.count(record);
    }

    @Override
    public int insert(Price record) {
        return this.priceDao.insert(record);
    }

    @Override
    public int update(Price record) {
        return this.priceDao.update(record);
    }

    @Override
    public Price getInfo(int id) {
        return this.priceDao.queryById(id);
    }

    @Override
    public List<Price> getList(Price record) {
        return this.priceDao.getList(record);
    }

    @Override
    public int delete(int id) {
        return this.priceDao.delete(id);
    }
}
